package mathcad.reprise;

import Jama.Matrix;
import static java.lang.Math.*;

public class PolynMatrix extends Matrix {

    private final static double s2 = sqrt(2);
    private final static double s3 = sqrt(3);
    private final static double s3p1 = 1 + s3;
    private final static double _p1s3 = 1 - sqrt(3);
    private int r0, r1, r2, r3, r4, r5;

    public PolynMatrix(int m, int n) {
        super(6, 6);

        set(0, 0, 2 * s2);
        set(1, 0, 2 * s2);
        set(2, 0, 2 * s2);
        set(3, 0, 2 * s2);
        set(4, 0, 2 * s2);
        set(5, 0, 2 * s2);
        //
        set(0, 1, 2 * r0);
        set(1, 1, -(-1 + s3)*r1);
        set(2, 1, -(1 + s3)*r2);
        set(3, 1, -2 * r3);
        set(4, 1, (-1 + s3)*r4);
        set(5, 1, (1 + s3)*r5);
    }
}
